import request from '@/utils/request'

export function getPage(query) {
  return request({
    url: '/web-api/api/logs/all',
    method: 'get',
    params: query
  })
}

export function getErrDetail(id) {
  return request({
    url: '/web-api/api/logs/error/' + id,
    method: 'get'
  })
}

export function delAll() {
  return request({
    url: '/web-api/api/logs/del/all',
    method: 'delete'
  })
}

export const downloadUrl = '/web-api/api/log/download'
